CryptoPro XMLDsig API.
Public API.

ru.CryptoPro.JCPxml.dsig.internal.dom
Class DOMKeyValue

java.lang.Object
  extended by ru.CryptoPro.JCPxml.dsig.internal.dom.DOMStructure
      extended by ru.CryptoPro.JCPxml.dsig.internal.dom.DOMKeyValue
All Implemented Interfaces:
javax.xml.crypto.dsig.keyinfo.KeyValue, javax.xml.crypto.XMLStructure

public abstract class DOMKeyValue
extends DOMStructure
implements javax.xml.crypto.dsig.keyinfo.KeyValue

DOM-based implementation of KeyValue.


Field Summary
 
Fields inherited from interface javax.xml.crypto.dsig.keyinfo.KeyValue
DSA_TYPE, RSA_TYPE
 
Constructor Summary
DOMKeyValue(org.w3c.dom.Element kvtElem, javax.xml.crypto.XMLCryptoContext context)
          Creates a DOMKeyValue from an element.
DOMKeyValue(java.security.PublicKey key)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.security.PublicKey getPublicKey()
           
 void marshal(org.w3c.dom.Node parent, java.lang.String dsPrefix, javax.xml.crypto.dom.DOMCryptoContext context)
           
 
Methods inherited from class ru.CryptoPro.JCPxml.dsig.internal.dom.DOMStructure
isFeatureSupported
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.xml.crypto.XMLStructure
isFeatureSupported
 

Constructor Detail

DOMKeyValue

public DOMKeyValue(java.security.PublicKey key)
            throws java.security.KeyException
Throws:
java.security.KeyException

DOMKeyValue

public DOMKeyValue(org.w3c.dom.Element kvtElem,
                   javax.xml.crypto.XMLCryptoContext context)
            throws javax.xml.crypto.MarshalException
Creates a DOMKeyValue from an element.

Parameters:
kvtElem - a KeyValue child element
Throws:
javax.xml.crypto.MarshalException
Method Detail

getPublicKey

public java.security.PublicKey getPublicKey()
                                     throws java.security.KeyException
Specified by:
getPublicKey in interface javax.xml.crypto.dsig.keyinfo.KeyValue
Throws:
java.security.KeyException

marshal

public void marshal(org.w3c.dom.Node parent,
                    java.lang.String dsPrefix,
                    javax.xml.crypto.dom.DOMCryptoContext context)
             throws javax.xml.crypto.MarshalException
Specified by:
marshal in class DOMStructure
Throws:
javax.xml.crypto.MarshalException

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

Copyright Crypto-Pro.
All rights reserved.